package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HealthyMapper;
import com.ruoyi.system.domain.Healthy;
import com.ruoyi.system.service.IHealthyService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
@Service
public class HealthyServiceImpl implements IHealthyService 
{
    @Autowired
    private HealthyMapper healthyMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param healthyId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Healthy selectHealthyByHealthyId(Long healthyId)
    {
        return healthyMapper.selectHealthyByHealthyId(healthyId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param healthy 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Healthy> selectHealthyList(Healthy healthy)
    {
        return healthyMapper.selectHealthyList(healthy);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param healthy 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertHealthy(Healthy healthy)
    {
        return healthyMapper.insertHealthy(healthy);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param healthy 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateHealthy(Healthy healthy)
    {
        return healthyMapper.updateHealthy(healthy);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param healthyIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteHealthyByHealthyIds(Long[] healthyIds)
    {
        return healthyMapper.deleteHealthyByHealthyIds(healthyIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param healthyId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteHealthyByHealthyId(Long healthyId)
    {
        return healthyMapper.deleteHealthyByHealthyId(healthyId);
    }
}
